package com.hsmpay.mobile.pojo.trans;

import com.hsmpay.common.pojo.BasePojo;

import java.util.Date;

/**
 * 手续费 折率
 * java bean
 * 对应 info_fee_rate表
 *
 * @author 颜铃璋
 */
public class FeeRate extends BasePojo {
    private static final long serialVersionUID = -5660616368655788150L;

    private Long id;//ID
    private Integer type;//手续费类型 0 DEFAULT 基数×折率  1 自定义手续费  后续加字段
    private Double discountRate;//折率 1 DEFAULT
    private String name;//折率 名称
    private String description;//折率  描述
    private Date updateDate;//最新修改时间
    private Date createDate;//创建时间
    private Double brokerageRate;//代理商 佣金率
    private Double dealerBrokerageRate;//经销商 佣金率

    public Double getBrokerageRate() {
        if (null == brokerageRate) {
            return 0d;
        }
        return brokerageRate;
    }

    public void setBrokerageRate(Double brokerageRate) {
        this.brokerageRate = brokerageRate;
    }

    public Double getDealerBrokerageRate() {
        if (null == dealerBrokerageRate) {
            return 0d;
        }
        return dealerBrokerageRate;
    }

    public void setDealerBrokerageRate(Double dealerBrokerageRate) {
        this.dealerBrokerageRate = dealerBrokerageRate;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(Double discountRate) {
        this.discountRate = discountRate;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
